<!DOCTYPE html>
<html ng-app="">
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="angular.js"></script>
  </head>
  <body ng-init="arr=[{name:'blue',content:'nasndka'}]">
    name: <input type="text" name="" value="" ng-model='name'> <br>
    content:<input type="text" name="" value="" ng-model='content'><br>
    <input type="button" name="" value="submit" ng-click="arr.unshift({name:name,content:content})">
    <ul>
      <li ng-repeat="json in arr">
        {{json.name}} {{json.content}}
      </li>
    </ul>
  </body>
</html>
